home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / CHFLZ100.ZIP / LZDEFINE.INC < prev    next >
Text File  |  1996-09-05  |  2KB  |  77 lines

  1. {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  2. { ////// CONDITIONAL COMPILATION DIRECTIVES FOR CHIEFLZ //////}
  3. {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  4.  
  5.  
  6. {\\\\\\\\\\\ release or debug mode?  \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  7. {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  8. { Conditional compilation to check for any `impossible' scenarios...
  9.   Remove for release code. }
  10.  
  11. {$DEFINE Debug}
  12.  
  13.  
  14. {$IFDEF Debug}
  15.   {$D+,L+,Q+,R+,S+,Y+}
  16. {$ELSE}
  17.   {$Q-,R-,S-}
  18. {$ENDIF}
  19.  
  20. {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  21. {\\\\\\\\\\\\\\\ DLL or static link?  \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  22.  
  23. {.$DEFINE aDLL}  { Remove dot to create a Windows/DPMI DLL }
  24.  
  25. {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  26. {\\\\\\\\\\\\\\\ DOS DPMI program?   \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  27.  
  28. {$ifdef DPMI}
  29.  {$ifdef aDLL}
  30.    {$define Windows} {use Windows data types for DOS DPMI DLL}
  31.  {$Endif aDLL}
  32. {$endif DPMI}
  33.  
  34. {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  35. {\\\\\\\\\\\\\\\ Win32 or other platform ?\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  36.  
  37. {$ifdef Win32}
  38.   {$B-}  { Use short-circuit logic }
  39.   {$H+}  { Use long strings        }
  40.   {$I+}  { IO-errors as exceptions }
  41.   {$J-}  { Non-assignable const variables. }
  42.   {$Z1}  { Byte-sized enumerated types }
  43.   {$Define Delphi}
  44.   {$Define Windows}
  45.   {$IFDEF Debug}
  46.     {$W+}           { <<< Stack frames in Debug Code }
  47.     {$WARNINGS On}  { <<< Force compiler to use bacon-saving options }
  48.     {$HINTS On}
  49.   {$ENDIF}
  50. {$else Win32}
  51.   {$B-}  { Use short-circuit logic }
  52.   {$F+)  { Use FAR-calls. This is *essential* in DEBUG code }
  53.   {$I-}  { IO-Error handling performed manually }
  54.   {$ifdef Windows}
  55.     {$define Win16}
  56.   {$endif Windows}
  57. {$endif Win32}
  58.  
  59.  
  60. {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  61. {\\\\\\\\\\\\\\\ Delphi 1.0?         \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  62.  
  63. {$ifDef Ver80}
  64.   {$Z-}  { Byte-sized enumerated types }
  65.   {$Define Delphi}
  66. {$endif Ver80}
  67.  
  68. {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  69. {\\\\\\\\\\\\\\\ Windows or like platform ?\\\\\\\\\\\\\\\\\\\\\\\\\\\\}
  70.  
  71. {$ifdef Windows}
  72. {$ifndef Delphi}
  73.   {$define TPW}
  74. {$endif Delphi}
  75. {$endif Windows}
  76.  
  77.